package View;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import org.jdesktop.application.Application;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ModificarUsuario extends javax.swing.JFrame {
	private JLabel lblBuscarPor;
	private JLabel jLabelNum;
	private JButton jButtonCargar;
	private JTextField jtfNumero;
	private JComboBox jcbDoc;
	private static ModificarUsuario instancia;
	
	public static ModificarUsuario getInstancia(){
		if (instancia==null)
			instancia=new ModificarUsuario();
		return instancia;
	}

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				ModificarUsuario inst = new ModificarUsuario();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public ModificarUsuario() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			pack();
			this.setSize(496, 332);
			this.setTitle("Modificar Usuario");
			getContentPane().setLayout(null);
			{
				lblBuscarPor = new JLabel();
				getContentPane().add(lblBuscarPor);
				lblBuscarPor.setBounds(12, 12, 104, 16);
				lblBuscarPor.setName("lblBuscarPor");
				lblBuscarPor.setText("Buscar Por:");
			}

			{
				ComboBoxModel jcbDocModel = 
					new DefaultComboBoxModel(
							new String[] { "Selecione el tipo de documento", "DNI", "CUIT" });
				jcbDoc = new JComboBox();
				getContentPane().add(jcbDoc);
				jcbDoc.setModel(jcbDocModel);
				jcbDoc.setBounds(81, 9, 183, 23);
			}
			{
				jButtonCargar = new JButton();
				getContentPane().add(jButtonCargar);
				jButtonCargar.setBounds(255, 242, 88, 23);
				jButtonCargar.setName("jButtonCargar");
				jButtonCargar.setText("Cargar");
				jButtonCargar.addActionListener(new ActionListener(){
					public void actionPerformed(ActionEvent evt){
						if (jtfNumero.getText()==""){
							
						}
					}
				});
			}
			{
				jLabelNum = new JLabel();
				getContentPane().add(jLabelNum);
				jLabelNum.setBounds(12, 47, 44, 16);
				jLabelNum.setName("jLabelNum");
			}

//			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
